package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.BankFinancingProductFundInfoDo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface BankFinancingProductFundInfoDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BankFinancingProductFundInfoDo record);

    int insertSelective(BankFinancingProductFundInfoDo record);

    BankFinancingProductFundInfoDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BankFinancingProductFundInfoDo record);

    int updateByPrimaryKey(BankFinancingProductFundInfoDo record);

    int deleteByReportOrgCodeAndReportDate(@Param("reportOrgCode") String reportOrgCode,
                                           @Param("reportDate") Date reportDate);

    int insertBatch(@Param("list") List<BankFinancingProductFundInfoDo> list);

    int selectCountByProductCode(String productCode);

    List<BankFinancingProductFundInfoDo> selectByRaiseMonth(String raiseMonth);
}